/*
  Copyright 2009 Smart Enterprise Solution Corp.
  Email: contact@ses.vn - Website: http://www.ses.vn
  KimNgan Project.
*/
using System;
using System.Data;
using System.Configuration;
using System.Collections;

using Photo;
using Photo;
/// <summary>
/// Summary description for LoginBL
/// </summary>
namespace Photo 
{
    public class LoginBL 
    {
    	#region Private Variables
		LoginDAL objLoginDAL;
		#endregion
		
        #region Public Constructors
        public LoginBL()
        {
            //
            // TODO: Add constructor logic here
            //
            objLoginDAL=new LoginDAL();
        }
        #endregion       

        #region Public Methods
        public int Insert(LoginDO objLoginDO)
        {
            return objLoginDAL.Insert(objLoginDO);
        }

        public int Update(LoginDO objLoginDO)
        {
             return objLoginDAL.Update(objLoginDO);

        }

        public int Delete(LoginDO objLoginDO)
        {
             return objLoginDAL.Delete(objLoginDO);

        }

         public int DeleteAll()
        {
             return objLoginDAL.DeleteAll();
        }

        public LoginDO Select(LoginDO objLoginDO)
        {
            return objLoginDAL.Select(objLoginDO);
        }

        public ArrayList SelectAll1( )
        {
         return objLoginDAL.SelectAll1();
        }
        
        public DataTable SelectAll( )
        {
         return objLoginDAL.SelectAll();
        }


     
#endregion          
    
    
        public LoginDO SelectLogin(string username, string pass)
        {
            return objLoginDAL.SelectLogin(username, pass);
        }
    }

}
